package jflowmap.data;

import java.io.IOException;
import java.util.Collection;
import java.util.Map;

import jflowmap.model.ontology.Context;
import jflowmap.model.ontology.Value;

public enum ValueReaders {
	CSV {
		@Override
		public Collection<Value> load(Map<String, String> properties, Context context) throws IOException {
			CsvValueReader vr = CsvValueReader.create(context, properties.get("__filename"),
					properties.get("__encoding"), properties.get("__separator"), properties);
			
			return vr.readValues();
		}
		
	};
	
	public abstract Collection<Value> load (Map<String, String> properties, Context context) throws IOException;
}
